HAL OTFDEC migration: List of applicable concepts

This section provides information about the HAL OTFDEC applicable architecture concepts .

Concepts for OTFDEC

Concept

Description

HAL2 no longer provides a user-facing OTFDEC driver; it is now a core driver wrapped by HAL XSPI to support on-the-fly decryption APIs.

No more user HAL OTFDEC driver: in HAL2, OTFDEC is provided as a core driver and wrapped by the HAL XSPI driver to expose end-user APIs for handling XSPI on-the-fly decryption operations.

Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.

Finite parameters (including XSPI instances) have been converted into enumerated types (enums) at the HAL level. This improves code readability, maintainability, and type safety.

Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).

All HAL OTFDEC functions start with HAL_XSPI_OTFDEC and all HAL OTFDEC enums and structs start with hal_xspi_otfdec.

Revised and optimized HAL error management

Redesign the error handling mechanisms within the HAL to enhance the detection, reporting, and management of errors.

Revised and optimized HAL state machine

The OTFDEC state machine is reworked to ensure transitions of the peripheral functional states.